<?php
require_once("login/class.session.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>amplfy.me</title>
                <link rel="stylesheet" type="text/css" href="<?=FULL_PATH?>stylesheets/supersimple.css">
                <link rel="stylesheet" type="text/css" href="<?=FULL_PATH?>stylesheets/button.css">
                <script type="text/javascript" src="<?=FULL_PATH?>javascript/jquery.js"></script>
                <script type="text/javascript" src="<?=FULL_PATH?>javascript/amp.js"></script>
                <!--[if IE]><link type="text/css" rel="stylesheet" href="ie.css" /><![endif]-->
                <link rel="shortcut icon" href="favicon.ico" >
        </head>
        <body <?php if(isset($onload_function)) echo 'onload="' . $onload_function . '"'?>>
          <div id = "header">
            <div id = "header_middle">
              <div class = "logo"><img src = "<?=FULL_PATH?>layout/amplfy_logo_red_transparent.png" alt="Amplfy Me"/></div>
              <?php
                if($session->logged_in){
                  echo '<div class = "mininav">';
                    if(isset($session->username)) { echo '<span class="username">' . $session->username . '</span> | '; }
					            echo '<a href = "' . FULL_PATH . 'process.php">Logout</a>';
					            if($session->userinfo['isadmin']){
                        echo ' | <a href = "' . FULL_PATH . 'admin.php">Administer</a>';
					            }
				          
                  echo '</div>';
                                                                 
                  echo '<div class = "tabs">'; 
                    echo '<a href = "' . FULL_PATH . 'index.php">Home</a>';
					echo '<a href = "' . FULL_PATH . 'profile/viewprofile.php">Profile</a>';
                    
                    echo '</div>';
				}
                    ?> 
                        <div class = "clear"></div>
            </div>
          </div><!--header end -->
                <div id = "content">
                  
                        <div id = "middle">
